package com.yuneec.droneservice.model;

/**
 * This class contains some location parameters used for remote-controller.
 *
 * @author jw.gu
 * @version 1.0
 */
public class ControllerLocation {
    /**
     * Longitude of remote-controller
     */
    public double longitude;
    /**
     * Latitude of remote-controller
     */
    public double latitude;
    /**
     * Altitude of remote-controller
     */
    public double altitude;
    /**
     * The number of satellite has searched
     */
    public int satelliteCount;

    /**
     * Accuracy of remote-controller
     */
    public int accuracy;

    /**
     * Speed of remote-controller
     */
    public int speed;

    /**
     * Angle of remote-controller
     */
    public int angle;

    public void reset() {
        longitude = 0;
        latitude = 0;
        altitude = 0;
        satelliteCount = 0;
        accuracy = 0;
        speed = 0;
        angle = 0;
    }

    @Override
    public String toString() {
        return "ControllerLocation{" +
                "longitude=" + longitude +
                ", latitude=" + latitude +
                ", altitude=" + altitude +
                ", satelliteCount=" + satelliteCount +
                ", accuracy=" + accuracy +
                ", speed=" + speed +
                ", angle=" + angle +
                '}';
    }


    public ControllerLocation() {
    }
}
